package com.kclm.se.inter;

public class Plane implements Movable {

	private String type;
	
	private String planeNo;
	
	/**
	 * @param type
	 * @param planeNo
	 */
	public Plane(String type, String planeNo) {
		this.type = type;
		this.planeNo = planeNo;
	}
	

	/**
	 * @return the type
	 */
	public String getType() {
		return type;
	}




	/**
	 * @param type the type to set
	 */
	public void setType(String type) {
		this.type = type;
	}

	/**
	 * @return the planeNo
	 */
	public String getPlaneNo() {
		return planeNo;
	}

	/**
	 * @param planeNo the planeNo to set
	 */
	public void setPlaneNo(String planeNo) {
		this.planeNo = planeNo;
	}


	@Override
	public void move(int direction, int speed) {
		System.out.printf("一架航班号为：%s的%s飞机正以【%d】km/h 的速度向%s飞去\n",
				this.planeNo, this.type, speed, convertDirection(direction));
	}

}
